package com.generalbackend.role.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.generalbackend.role.model.entity.RestApi;
import com.generalbackend.role.model.query.RestApiQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* ClassName: RestApi
* @Description 接口表Mapper
* @author tim.xie
* @date 2021-12-14 13:19
*/

@Mapper
@Repository
public interface RestApiMapper extends BaseMapper<RestApi>{

    /**
    * 根据条件查询列表
    * @return
    */
    List<RestApi> list(Page<RestApi> page, @Param("queryOption") RestApiQuery restApiQuery);

    /**
     * 通过菜单id查询
     * @param menuList
     * @return
     */
    List<RestApi> selectByMenuList(@Param("menuList") List<String> menuList);

}
